import ApiClient from '../base-api'

const jobApi = new ApiClient('/monitor/job')

// 执行一次
jobApi.runJob = (id) => {
  return jobApi.put(`run/${id}`)
}

// 启动任务
jobApi.startJob = (id) => {
  return jobApi.put(`start/${id}`)
}

// 暂停任务
jobApi.pauseJob = (id) => {
  return jobApi.put(`pause/${id}`)
}

export default jobApi
